home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / boot / initrd.img-2.6.28-15-generic / initrd.img-2.6 / scripts / casper-bottom / 42disable_apparmor < prev    next >
Encoding:
Text File  |  2009-10-12  |  377 b   |  27 lines

  1. #!/bin/sh
  2. # workaround for AppArmor bug #131976
  3.  
  4. PREREQ=""
  5. DESCRIPTION="Disabling AppArmor (does not work with stacked file systems)..."
  6.  
  7. . /scripts/casper-functions
  8.  
  9. prereqs()
  10. {
  11.        echo "$PREREQ"
  12. }
  13.  
  14. case $1 in
  15. # get pre-requisites
  16. prereqs)
  17.        prereqs
  18.        exit 0
  19.        ;;
  20. esac
  21.  
  22. log_begin_msg "$DESCRIPTION"
  23.  
  24. chroot /root update-rc.d -f apparmor remove
  25.  
  26. log_end_msg
  27.